package gui.mainframe;

import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.SwingConstants;
import java.awt.Font;
import javax.swing.border.LineBorder;
import java.awt.Color;

public class ToolTip extends JPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 5176800827451735194L;

	//Constructor des ToolTips
	public ToolTip(String nachricht) {
		setBorder(new LineBorder(Color.RED, 2));
		setLayout(null);
		
		JLabel lblNewLabel = new JLabel("");
		lblNewLabel.setText(nachricht);
		lblNewLabel.setFont(new Font("Tahoma", Font.BOLD, 11));
		lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
		lblNewLabel.setBounds(10, 50, 430, 25);
		add(lblNewLabel);

	}
}
